package com.lovo.manage_back.service;

import com.github.pagehelper.PageInfo;
import com.lovo.manage_back.bean.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @author BDK-THINKPAD
* @description 针对表【t_user(用户表)】的数据库操作Service
* @createDate 2023-08-02 09:25:50
*/
public interface UserService extends IService<User> {
    PageInfo listUser(Integer current,Integer pageSize,User user);
    Map listUserRole(Integer id);
    User getUserByName(String username);
    User login(User user);
    int assignUserRole(Integer id,Integer [] roleIds);
    int deleteUser(Integer id);

}
